<?php
$this->breadcrumbs = array(
	'All Users' => array('users/index'),
	$user->name => array('users/update', 'id' => $user->id),
	'Appoint User'
);
?>


<div class="main-title">
    <h1 class="float-left">Appoint User - <?php echo $user->name; ?></h1>
    <span class="controls">
    </span>
</div>
<div class="grid_16">
    <div class="form">
		<?php
		$form = $this->beginWidget('PsActiveForm', array(
			'id' => 'add-team-form',
			'enableAjaxValidation' => false,
			'htmlOptions' => array(
				'class' => 'form'
			)
				));
		?>
        <div class="table-block">
            <table class="form-table">
                
				<tr>
					<th scope="row" width="220">
						<?php echo $form->labelEx($promotion, 'from_date', array('label' => 'Date new designation takes effect')); ?>
                    </th>
					<td>
						<?php
						$form->widget('PsJuiDatePicker', array(
							'model' => $promotion,
							'attribute' => 'from_date',
							'options' => array(
								'showButtonPanel' => false,
								'changeMonth' => true,
								'changeYear' => true,
								'dateFormat' => 'dd-mm-yy',
							),
						));
						?>
						<?php echo $form->error($promotion, 'from_date'); ?>
					</td>
				</tr>
				<tr>
                    <th scope="row" width="220">
						<?php echo $form->labelEx($promotion, 'designation_id', array('label' => 'Designation name')); ?>
                    </th>
                    <td>
                        <div class="form-table-block">
							<?php echo $form->dropDownList($promotion, 'designation_id', Designation::model()->getActiveDesignationsListData(), array('prompt' => '', 'id' => 'effectiveDesignationSelect')); ?>
							<?php echo $form->error($promotion, 'designation_id'); ?>
                        </div>
                    </td>
                </tr>
				
				<tr>
                    <th scope="row" width="220">
						<?php echo $form->labelEx($promotion, 'comments'); ?>
                    </th>
                    <td>
                        <div class="form-table-block">
							<?php echo $form->textArea($promotion, 'comments', array('cols' => '28')); ?>
							<?php echo $form->error($promotion, 'comments'); ?>
                        </div>
                    </td>
                </tr>
				
                <tr>
                    <th scope="row" width="80"></th>
                    <td>
						<?php echo GxHtml::submitButton('Save', array('name' => 'submit', 'class' => 'no-margin')); ?>
                    </td>
                </tr>
            </table>
        </div>
		<?php $this->endWidget(); ?>
    </div>
</div>